<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="thx" uri="/thx-tags"%>
<%@ taglib prefix="fun" uri="http://java.sun.com/jsp/jstl/functions"%>

<section class="content-header">
	<h1>
		起草工作<small>工单管理</small>
	</h1>
	<ol class="breadcrumb">
		<li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
		<li><a href="#">工单管理</a></li>
		<li class="active">起草工作</li>
	</ol>
</section>

<section class="content">
	<div class="row">
		<div class="col-md-12">
			<div class="box">
				<div class="box-body no-padding">
					<div class="row">
						<div class="col-sm-12">
							<table class="table table-bordered">
								<c:forEach items='${appTypes}' var="type">
									<tr>
										<th style="text-align: right; background-color: #f5fafc;" width="15%">${type.typeName }</th>
										<td>
											<c:forEach items='${type.apps}' var="app">
					                  			<a href="${pageContext.request.contextPath}/jbpmService/engine/start?appId=${app.appId }" target="_blank" style="float:left; padding-left:10px; margin-left:15px; color: black;">
						                  			<span class="fa fa-square" style="font-size:5px; vertical-align: middle;"></span>
						                  			${app.appName }
						                   		</a>
											</c:forEach>
										</td>
									</tr>
								</c:forEach>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>